home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
biz
/
swood
/
Fontaloger.lha
/
Fontaloger.doc
< prev
Wrap
Text File
|
1998-02-20
|
14KB
|
328 lines
*#######################################################################*
* *
* Fontaloger V1.1 - Final Writer Arexx Script *
* Andrew M. Haas (20-Feb-98) *
* *
* EMail: AndyHaas@wcnet.org *
* *
*#######################################################################*
Introduction:
Fontaloger is a Final Writer ARexx macro which will print all fonts
in a specified path. The font name will be printed using a common font
and a test string will be printed using the actual font.
Since Fontaloger prints each page as is it created, clears the document,
and starts the next page on an empty document, there is no limit to the
number of fonts, or pages of fonts which can be cataloged. In contrast,
accumulation (as a single Final Writer document) of a large font catalog
could exceed the available memory of an 8 MB Amiga. This is because font
files typically range in size from 20k bytes to 100k bytes each and
subtract that amount from available memory as they are loaded.
A catalog page can contain one, two, or three columns of font samples,
allowing 15, 56, and 108 samples per page respectively. You can choose
from these based on your preferences and available memory.
Requirements:
Final Writer V4 (Fontaloger prefers to use the FW V5 public screen)
OS 2.04+ (requires V2.04+ Request commands below)
AmigaDOS commands:
RequestFile, RequestChoice, Wait, Delete, Run, Rename, List, Sort
6MB RAM (>8MB recommended)
Installation:
1.) Put Fontaloger and Fontaloger.doc in the FWMacros directory.
2.) Add the following 'assign' in your S:User-Startup and reboot.
--> Assign FinalWriter: <Final Writer program directory path>
The stuff in < > is the path to Final Writer - it includes the
Final Writer directory name. Fontaloger will execute Final Writer
automatically if you perform this step - it is not a NECESSARY
step.
Starting Fontaloger:
From Final Writer:
1.) Run Final Writer
2.) Select Fontaloger in 'User' menu -> Other -> ARexx Script...
From CLI:
1.) You will need the 'assign' in step 2 of the installation
instructions in place.
2.) At the CLI prompt, enter the following command.
--> rx FinalWriter:FWMacros/Fontaloger
3.) If Final Writer is not already running, it will be
started automatically.
Using Fontaloger:
1.) Execute Fontaloger in one of the two ways described above.
2.) Select 'Continue' in the first requester.
3.) Select the printing mode:
* 'Autoprint' will send the pages to the printer automatically
as they are completed. There is no possibility of saving the
pages as a FinalWriter document in this mode. You will want
to turn your printer on right away if using this mode.
* 'Page prompt' mode will present a requester and beep when
each page is completed and ready to print. Saving each page as
a separate Final Writer document is possible in this mode.
* 'List to file' will not print, but will create an ASCII
listing of all the files which would otherwise be printed in the
'Autoprint' or 'Page prompt' modes. This is good for making a
'trial run' to see how things will go. The file list is created
in RAM:FontList. You can view this file with any text editor.
4.) Select the number of columns of text (font samples) you want
printed on each page:
* 'One' column mode will print about 15 fonts per page.
* 'Two' column mode will print about 56 fonts per page.
* 'Three' column mode will print about 108 fonts per page.
The amount of RAM on your particular Amiga may also play a
role in your selection process. Keep an eye on your free RAM.
In 'List to file' (see 3. above) mode, the number of columns is
used to generate an estimate of the number of pages required to
print the listed fonts.
5.) Select the font path:
Fontaloger defaults to the current Final Writer font path.
Navigate your way to the directory which hosts the fonts that
you are interested in. Any selected filenames will be ignored.
Selecting 'Cancel' at this requester will abort Fontaloger.
6.) Enter the font pattern:
The font pattern serves as a filter for selecting (from the
specified path) only those files which are Final Writer
compatible fonts. Files which match the pattern and are not fonts
will cause Final Writer to present an error message. Repeatedly
clicking 'Ok' at this requester can get old.
The default pattern is '~(#?.info) ALL AutoID'. The ~(#?.info)
parameter instructs Fontaloger to ignore all files ending with
'.info' and 'All' causes all subdirectories to be included in the
catalog. If you are not familiar with AmigaDOS pattern matching,
you should consult your AmigaDOS manual and practice using the
AmigaDOS 'List' command.
The 'AutoID' parameter instructs Fontaloger to inspect every file
which matches the above pattern and verify their first two bytes
against each of three font header templates. If the first two bytes
of a file matches one of the templates, there is a high likelihood
that this file is a valid Final Writer compatible font. Although
the 'AutoID' feature slows the process (by opening and closing each
file to inspect the header), it almost guarantees that the default
pattern will be sufficient.
Note that 'AutoID' excludes files which do not match one of the
three header templates. Therefore it is conceivable that a Final
Writer compatible font with a different (new) header will be
excluded from the font list. If this, or the opposite (a non-font
getting past the test) happens to you, please let me know, and if
possible, Email the offending file to me.
7.) Inspect the advance analysis and select first page:
Fontaloger counts the number of files (which are hopefully all
fonts) which match the font pattern and path and estimates
the number of pages that will be required to print them all.
If you are unhappy, you may select 'Abort', otherwise select
'Continue', or 'Skip pages'. 'Continue' will start page creation
at page 1 and continue until completion or until aborted. 'Skip
pages' allows you to continue from where you left off if you
had to abort an earlier multipage print. Page calculation for the
'Skip pages' option assumes that all files skipped are valid
fonts. So, if you printed five pages and got tired of clicking
'OK' on the 'bad font' requester, for instance, you can abort and
restart using a better pattern, then 'Skip' the pages that were
already printed. If any files that match your pattern are not
fonts, the 'Skip pages' function will not operate properly.
In 'List to file' mode, the only option is 'Done' - you may now
view the RAM:FontList file with the text editor of your choice.
8.) Let 'er rip!:
Fontaloger draws a header with the full path to the specified
font directory and 'page #' at the top of the page. Below,
Fontaloger draws both the font name (with path from the
specified directory) in the 'Courier' font and a 'test string'
of characters in the font itself. This is repeated until the
page is full. The list is alphabetized.
Fonts that are unusually wide may not fit completely within its
column. In this case, Fontaloger will truncate the test